package com.dongdong.bookstore.module.ums.viewmodel;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import java.util.Date;

/**
 * @author chiangkai
 * @date 2021-10-28
 * @email chiangkk@163.com
 */
@ApiModel("角色参数模型")
@Data
public class RoleParam {

    @NotEmpty(message = "角色名称不能为空")
    @ApiModelProperty(value = "角色名称")
    private String name;

    @ApiModelProperty(value = "角色描述")
    private String description;

    @ApiModelProperty(value = "角色状态 1启用 0禁用")
    @Range(max = 1,message = "角色状态参数错误")
    private Integer status;

}
